#include <stdio.h>

int main () {
	int x,y,z;
	int tries = 0;
	for (x = 0; x<=20; x++) {
		for (y = 0; y<=33; y++) {
			for ( z = 0;z<=300;z++) {
				if (z%3 == 0) {
					if ((5*x + 3*y + z/3) == 100){
						printf("公鸡%d只；母鸡%d只；小鸡%d只\n", x, y, z);
						tries++;
					}
				}
			}
		}
	}

	printf("公找到种放案：%d\n" , tries);
}
